<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>代码高亮模块</title>
    <link rel="stylesheet" href="./HighLight.css">
    <script src="./HighLight.js"></script>
</head>

<body>
    <div class="work">
    </div>
</body>
<script>

    code = `
    <div class="work">	
        <<span class='tag'>spanspan>></<span class='tag'>spanspan>>
    </div>	
    `;
    console.log(code);
    let html = highlight(code, "html");
    console.log(html)
    document.getElementsByClassName("work")[0].innerHTML = html;
</script>

</html>